package com.workflow.workflowproject.pojo.lowflow;

import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import java.io.Serializable;

import java.io.Serial;

import com.mybatisflex.core.keygen.KeyGenerators;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 *  实体类。
 *
 * @author Administrator
 * @since 2024-10-31
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Table("t_com_flow_node_field")
public class FlowNodeField implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 节点字段控制id
     */
    @Id(keyType = KeyType.Generator, value = KeyGenerators.snowFlakeId)
    @Schema(description = "节点字段控制id")
    private String id;



    /**
     * 任务节点id
     */
    @Column(value = "task_node_id")
    @Schema(description = "任务节点id")
    private String taskNodeId;


    /**
     * 可读（0、不可读；1、可读）
     */
    @Column(value = "readable")
    @Schema(description = "可读（0、不可读；1、可读）")
    private Integer readable;


    /**
     * 隐藏  (0、不隐藏；1、隐藏)
     */
    @Column(value = "hidden")
    @Schema(description = "可写  (0、不可写；1、可写)")
    private Integer hidden;


    /**
     * 必填
     */
    @Column(value = "required")
    @Schema(description = "必填  (0、不必填；1、必填)")
    private Integer required;


    /**
     * 字段id
     */
    @Column(value = "field_id")
    @Schema(description = "字段id")
    private String fieldId;

    /**
     * 流程文件id
     */
    @Column(value = "flow_file_id")
    @Schema(description = "流程文件id")
    private String flowFileId;

}
